﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectnewstype.aspx.cs" Inherits="UI.system.page.config.selectnewstype" %>
<%@ Import Namespace="Model" %>
<div class="layui-form" style="margin-bottom:50px; padding:10px; position:relative;">
    <div class="layui-searchbar">
        <div class="right"><a id="search" lay-filter="save" lay-submit class="layui-btn layui-btn-small layui-btn-normal">确定</a></div>
    </div>
    <table class="layui-table">
    <colgroup>
      <col width="60">
      <col>
    </colgroup>
    <thead>
      <tr>
        <th>选择</th>
        <th>分类名称</th>
      </tr> 
    </thead>
     <tbody id="layer-table">
        <%foreach(NewsTypeInfo info in newstypelist){ %>
        <tr class="cursor">
        <td><input type="checkbox" name="id" title="" value="<%=info.ID %>" val="<%=info.Name %>" lay-filter="id" <%=ids.Contains(info.ID.ToString())?"checked":"" %>></td>
        <td><%=info.Name %></td>
        </tr>
        <%} %>
    </tbody>
  </table>
</div>